<?php
use yii\helpers\Html;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use yii\widgets\LinkPager;
use frontend\controllers\ListController;
use common\models\articles\Articles;
use common\models\member\Member;
use common\models\category\Category;
use common\models\Fenhuigrade\Fenhuigrade;

?>
    <!--content-->
    <div class="content">
        <div class="w1113 bgd-ff mt10 mb10">
            <span class="abwz">
               您所在的位置：<a href="<?= yii\helpers\Url::to(['/']);?>">首页</a> >
                <a href="<?= yii\helpers\Url::to(['hyfabu/list']); ?>">会员发布</a>
            </span>
        </div>
        <div class="w1113 bgd-ff">
            <div class="clearFloat pl20 pr20 pt15 pb50">
                <div class="ableft floatLeft">
                    <div class="ablewidt">
                        <h3 class="anh3">会员发布</h3>
                        <div class="jquery-accordion-menu">
                            <ul  class="acb">
                                <li class="active" >
                                    <a href="<?= yii\helpers\Url::to(['hyfabu/list']); ?>">会员发布</a>
                                </li>
                            </ul>
                        </div>
                    </div>

                </div>
                <div class="abright floatRight">
                    <div class="abrwidth">
                        <div class="clearFloat abrwidt">
                            <h3 class="xhjsh3">
                                <?=$article['title'];?>
                                <span class="xhjstime"><?= date('Y-m-d H:i:s',$article['updated_at']);?></span>
                            </h3>
                            <div class="clearFloat xhp">
                                <p>
                                    <?= $article['content'];?>
                                </p>
                            </div>
                        </div>
                        <div class="clearFloat xhxgxw">
                            <h3 class="xgxwtit">Related news</h3>
                            <div class="xgxwcont">
                                <ul>
                                    <?php foreach($articles as $k=>$t){ ?>
                                    <li>
                                        <a href="<?= yii\helpers\Url::to(['hyfabu/index', 'id' => $t['id']]); ?>"><?php echo(mb_substr(strip_tags($t['title']),0,32,'utf-8')); ?><?php if(strlen($t['title']) > 97) { echo '...'; } ?></a>
                                    </li>
                                    <?php } ?>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--content end-->